package com.transcasafe.eanpay.core.service.model;

import com.transcasafe.eanpay.core.util.GsonUtil;
import lombok.Getter;
import lombok.Setter;

/**
 * EanPay Pay Request
 */
@Getter
@Setter
public class PaymentsPayRequest {

    private CardInfoInRequest cardInfo;

    private OrderInfoInRequest orderInfo;

    private BillToInfoInRequest billToInfo;

    private ShipToInfoInRequest shipToInfo;

    private DeviceInfoInRequest deviceInfo;

    private String notifyUrl; // 商户支付回调通知地址
    private String payerAuthRedirectUrl; // 3D认证重定向URL

    public String toJsonStr() {
        return GsonUtil.toJson(this);
    }
}
